<?php

class UserProfileForm extends CFormModel {

    public $first_name;
    public $last_name;
    public $avatar;

    /**
     * Declares the validation rules.
     */
    public function rules() {
        return array(
            array('first_name, last_name', 'required'),
            array('avatar', 'safe'),
        );
    }
    
    /**
     * Declares attribute labels.
     */
    public function attributeLabels() {
        return array(
            'first_name' => Yii::t('yii', 'First Name'),
            'last_name' => Yii::t('yii', 'Last Name'),
            'avatar' => Yii::t('yii', 'Avatar'),
        );
    }

    

}
